/* 全局重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
    font-size: 14px;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 状态栏样式 */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    background-color: #f5f5f5;
    color: #333;
    font-size: 12px;
}

.status-time {
    font-weight: 500;
}

.status-icons, .status-right {
    display: flex;
    align-items: center;
}

.status-icons span, .status-right span {
    margin-right: 4px;
}

/* 图标样式（通过伪元素模拟） */
.icon-back:before {
    content: "←";
}

.icon-close:before {
    content: "×";
}

.icon-more-vert:before {
    content: "⋮";
}

.icon-camera-circle {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #333;
    position: relative;
}

.icon-search:before {
    content: "🔍";
}

.icon-message:before {
    content: "✉";
}

.icon-hexagon:before {
    content: "⬢";
}

.icon-more:before {
    content: "…";
}

/* 头部导航 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
    padding: 0 10px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.header-title {
    font-size: 18px;
    font-weight: bold;
}

.header-right {
    display: flex;
    align-items: center;
}

.btn-rule {
    background-color: #f5f5f5;
    border: none;
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 12px;
    margin-right: 10px;
}

/* 公告栏 */
.announcement {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #4d4d4d;
    color: #fff;
    font-size: 13px;
    border-radius: 25px;
    margin: 10px;
}

/* 主体内容 */
.main-content {
    position: relative;
}

.model-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    background-color: #fff;
}

.model-image {
    width: 100%;
    display: block;
    height: auto;
}

/* 右侧操作按钮 */
.action-buttons {
    position: absolute;
    right: 10px;
    top: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.action-text {
    font-size: 12px;
    color: #666;
}

.action-text.active, .favorite-icon.active {
    color: #ff6700;
}

/* 图标样式 */
.size-icon:before {
    content: "📏";
}

.download-icon:before {
    content: "⬇️";
}

.profile-icon:before {
    content: "👤";
}

.favorite-icon:before {
    content: "❤️";
}

.more-icon:before {
    content: "≡";
}

/* 底部浮动面板 */
.floating-panel {
    position: absolute;
    right: 60px;
    top: 200px;
    background-color: #4d4d4d;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.panel-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.panel-button:last-child {
    margin-bottom: 0;
}

.panel-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.panel-text {
    font-size: 12px;
    color: #fff;
}

.grid-icon:before {
    content: "⊞";
}

.comment-icon:before {
    content: "💬";
}

.share-icon:before {
    content: "↗";
}

/* 底部上传和尺寸信息 */
.bottom-info {
    position: absolute;
    bottom: 50px;
    left: 20px;
    width: calc(100% - 40px);
}

.upload-button, .size-info {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 12px 20px;
    border-radius: 50px;
    margin-bottom: 10px;
    width: 100%;
}

.camera-icon:before {
    content: "📷";
    margin-right: 15px;
    font-size: 18px;
}

.profile-icon-small:before {
    content: "👤";
    margin-right: 15px;
    font-size: 18px;
}

.arrow-right:before {
    content: ">";
    margin-left: auto;
}

.new-tag {
    background-color: #ff6700;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 10px;
}

/* 水印 */
.watermark {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* 导航标签 */
.nav-tabs {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    font-size: 15px;
    color: #666;
    padding: 5px 12px;
    white-space: nowrap;
    min-width: 60px;
    text-align: center;
}

.nav-tab.active {
    color: #ff6700;
    font-weight: bold;
    position: relative;
}

.nav-tab.active:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff6700;
}

/* 恢复导航标签样式 */

.search-icon:before {
    content: "🔍";
}

/* 分类菜单 */
.category-tabs {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
    background-color: #fff;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 5px 15px;
    margin: 0 5px;
    font-size: 14px;
    color: #666;
    background-color: #f5f5f5;
    border-radius: 20px;
}

.category-tab.active {
    color: #fff;
    background-color: #ff9500;
}

.category-tab:first-child {
    margin-left: 10px;
}

.category-tab:last-child {
    margin-right: 10px;
}

/* 商品列表 */
.product-list {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
}

.product-item {
    width: calc(33.333% - 10px);
    margin: 5px;
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 130%; /* 控制图片高宽比 */
    background-color: #f5f5f5;
    border-radius: 5px;
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(255, 152, 0, 0.8);
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px 0 0 0;
}

.product-title {
    margin-top: 5px;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-stats {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

.highlight {
    color: #ff6700;
}

/* 衣柜展示样式 */
.wardrobe-container {
    padding: 15px;
    background-color: #fff;
}

/* 顶部按钮样式 */
.wardrobe-top-actions {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}

.wardrobe-top-btn {
    background-color: #ff6700;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 14px;
    flex-grow: 1;
    margin: 0 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wardrobe-top-btn:first-child {
    margin-left: 0;
}

.wardrobe-top-btn:last-child {
    margin-right: 0;
}

/* 添加新样式，用于全屏显示图片 */
.wardrobe-image-full {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-sizing: border-box;
    display: block;
    margin-top: 5px;
}

.wardrobe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.wardrobe-header h3 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.wardrobe-stats {
    font-size: 12px;
    color: #999;
}

.wardrobe-grid {
    display: flex;
    flex-direction: column;
}

.wardrobe-category {
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 12px;
}

.category-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

.wardrobe-items {
    display: flex;
    flex-wrap: wrap;
}

.wardrobe-item {
    width: calc(25% - 8px);
    margin: 4px;
}

.wardrobe-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background-color: #f5f5f5;
    border-radius: 5px;
    overflow: hidden;
}

.wardrobe-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wardrobe-actions {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.wardrobe-btn {
    background-color: #ff6700;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 14px;
}

/* 星座运势模块样式 */
.horoscope-container {
    padding: 15px;
    background-color: #fef6fa;
    border-radius: 10px;
    margin-bottom: 15px;
}

.birthday-input-section {
    background: linear-gradient(135deg, #ffddee 0%, #f2e4fa 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(255, 180, 220, 0.3);
}

.cosmic-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: #ba4b8d;
}

.cosmic-title h2 {
    margin: 0 10px;
    font-size: 18px;
    font-weight: bold;
}

.star-icon {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%23ba4b8d'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.birthday-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.birthday-picker {
    padding: 12px;
    border-radius: 25px;
    border: 1px solid #f8c0da;
    background-color: #fff;
    color: #666;
    font-size: 16px;
    text-align: center;
}

.check-horoscope-btn {
    padding: 12px;
    border-radius: 25px;
    border: none;
    background: linear-gradient(135deg, #fc85b2 0%, #ba4b8d 100%);
    color: white;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(186, 75, 141, 0.3);
    transition: transform 0.2s ease-in-out;
}

.check-horoscope-btn:active {
    transform: scale(0.98);
}

.registered-birthday {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 14px;
    color: #666;
}

.registered-birthday p {
    margin: 5px 0;
}

#user-sign {
    color: #ba4b8d;
    font-weight: bold;
}

/* 星座运势卡片 */
.horoscope-display {
    margin-bottom: 20px;
}

.horoscope-card {
    background: linear-gradient(135deg, #fff 0%, #fdf3fc 100%);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.horoscope-card::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200' opacity='0.05'%3E%3Cpath d='M100,10 L120,90 L200,90 L135,145 L155,190 L100,160 L45,190 L65,145 L0,90 L80,90 Z' fill='%23ba4b8d'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 0;
}

.horoscope-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.sign-icon {
    width: 60px;
    height: 60px;
    background-color: #f9e7f3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
}

.sign-info h3 {
    margin: 0;
    font-size: 20px;
    color: #ba4b8d;
}

.sign-info p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #888;
}

.horoscope-indices {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.index-item {
    margin-bottom: 10px;
}

.index-title {
    font-size: 14px;
    margin-bottom: 5px;
    color: #666;
}

.index-bar-container {
    display: flex;
    align-items: center;
    height: 18px;
}

.index-bar {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #fc85b2 0%, #ba4b8d 100%);
    transition: width 1s ease-in-out;
}

.index-value {
    margin-left: 10px;
    font-size: 14px;
    color: #ba4b8d;
    font-weight: bold;
}

.horoscope-lucky {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background-color: #fdf3fc;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.lucky-item {
    flex: 1;
    min-width: 30%;
}

.lucky-label {
    color: #888;
    font-size: 12px;
}

.lucky-value {
    color: #ba4b8d;
    font-weight: bold;
    font-size: 14px;
}

.horoscope-summary {
    position: relative;
    z-index: 1;
}

.horoscope-summary h4 {
    color: #ba4b8d;
    margin: 0 0 10px 0;
    font-size: 16px;
}

.horoscope-summary p {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

/* 星座图标 - 为12星座预设的不同图标和颜色 */
.sign-icon[data-sign="aries"]::before {
    content: "♈";
    color: #ff5252;
}

.sign-icon[data-sign="taurus"]::before {
    content: "♉";
    color: #9c27b0;
}

.sign-icon[data-sign="gemini"]::before {
    content: "♊";
    color: #ff9800;
}

.sign-icon[data-sign="cancer"]::before {
    content: "♋";
    color: #2196f3;
}

.sign-icon[data-sign="leo"]::before {
    content: "♌";
    color: #f44336;
}

.sign-icon[data-sign="virgo"]::before {
    content: "♍";
    color: #4caf50;
}

.sign-icon[data-sign="libra"]::before {
    content: "♎";
    color: #ff5722;
}

.sign-icon[data-sign="scorpio"]::before {
    content: "♏";
    color: #9c27b0;
}

.sign-icon[data-sign="sagittarius"]::before {
    content: "♐";
    color: #3f51b5;
}

.sign-icon[data-sign="capricorn"]::before {
    content: "♑";
    color: #795548;
}

.sign-icon[data-sign="aquarius"]::before {
    content: "♒";
    color: #2196f3;
}

.sign-icon[data-sign="pisces"]::before {
    content: "♓";
    color: #00bcd4;
}

/* 星座背景 */
.horoscope-container {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cpath d='M159,100 L170,80 L150,75 Z' fill='%23fff' opacity='0.1'/%3E%3Cpath d='M259,80 L270,60 L290,70 Z' fill='%23fff' opacity='0.1'/%3E%3Cpath d='M50,200 L60,180 L40,170 Z' fill='%23fff' opacity='0.1'/%3E%3Cpath d='M350,250 L370,230 L360,210 Z' fill='%23fff' opacity='0.1'/%3E%3Ccircle cx='100' cy='100' r='1' fill='%23fff' opacity='0.2'/%3E%3Ccircle cx='200' cy='150' r='1.5' fill='%23fff' opacity='0.2'/%3E%3Ccircle cx='300' cy='100' r='1' fill='%23fff' opacity='0.2'/%3E%3Ccircle cx='150' cy='200' r='1' fill='%23fff' opacity='0.2'/%3E%3Ccircle cx='250' cy='250' r='1' fill='%23fff' opacity='0.2'/%3E%3Ccircle cx='350' cy='150' r='1.5' fill='%23fff' opacity='0.2'/%3E%3C/svg%3E");
    background-size: cover;
    position: relative;
}

.horoscope-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 220, 240, 0.9) 0%, rgba(240, 210, 250, 0.9) 100%);
    z-index: -1;
    border-radius: 10px;
}